Code samples Settings / Turtle / Advanced / JavaScript var custom_init = function() { // initializing slide page }; var panel; var counter = function() { var cnt = panel.find('.info > span'); n = parseInt(cnt.text(), 10); if ( !cnt.length ) return; cnt.text(n - 1); if (n > 1) { setTimeout(counter, 1000); } else { cnt.parents('[role=dialog]').trigger('remove'); } }; var custom_btn_clicked = function(t) { // action button panel = $(t).closest('.custom_panel'); panel.find('.info').remove(); panel.append($('<p class="info">This is the final countdown: <span>10</p>')); setTimeout(counter, 1000); }; Settings / Turtle / Advanced / Custom button <div class="custom_panel"> <h1>Yay, the button was clicked!</h1> <p>This is what happens if you click unknown buttons!</p> <button class="button" onclick="custom_btn_clicked(this); return false;">Don't click me!</button> </div>